package mysql

import "gorm.io/gorm"

type Product struct {
	gorm.Model
	UserId         int64  `gorm:"type:int(11);not null;comment:'用户ID'"`
	Avatar         string `gorm:"type:varchar(300);not null;comment:'商品图片'"`
	ShopName       string `gorm:"type:varchar(20);not null;comment:'商品名称'"`
	ShopNavigation string `gorm:"type:varchar(10);not null;comment:'商品导航'"`
	ShopLabel      string `gorm:"type:varchar(50);not null;comment:'商品标签'"`
	ShopBank       int64  `gorm:"type:int(11);not null;comment:'库存'"`
	SalesVolume    int64  `gorm:"type:int(11);not null;comment:'销量'"`
	Status         string `gorm:"type:enum('已上架','未上架 ','未发布');not null;comment:'状态'"`
}
